package com.software.template;

public abstract  class Cooking {

    private  void process1(){
        System.out.println("热锅");
    }
    private void process2(){
        System.out.println("倒油");
    }
    abstract void process3();
    abstract void process4();
    private void process5(){
        System.out.println("翻炒");
    }
    private void process6(){
        System.out.println("出锅");
    }


    public final void cook()
    {
        process1();
        process2();
        process3();
        process4();
        process5();
        process6();
    }
}
